<template>
  <ul>
    <li v-for="book in books" :key="book.id">
        <slot :book="book" name="bookInfo">
            <!-- 默认内容 -->
            {{ book.name }}
        </slot>
    </li>
</ul>
</template>
   
<script>
export default {
  name: 'B',
  data() {
    return {

    }
  }
}
</script>
